<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./vue/vue.js">
    </script>
    <style>
        .hl {
            background-color: yellow;
        }
    </style>
    <title>Document</title>
</head>

<body>
    <div id="demo">
        {{testData}}
        <span style="color: red;" v-text:"testData" />
        <img v-show="isShow" src="./img/2.png" height="100px" width="100px"/>
        <img v-show="2<3" src="./img/2.png" height="100px" width="100px"/>
        <button @click="changeStat">ch!</button> 

        <hr/>

        <img v-if="isShow" src="./img/2.png" height="100px" width="100px"/>
        <button @click="changeStat">ch!</button> 
    </div>


    <script>
        var app = new Vue({
            el: "#demo",
            data: {
                testData: "ojbk",
                isShow: true,
            },
            methods: {
                changeStat: function () {
                    this.isShow = !this.isShow;
                }
            }
        });
    </script>
</body>

</html>